package com.qijian.maindata.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.qijian.common.enums.ApprovalDescriptionEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.qijian.common.annotation.Excel;
import com.qijian.common.core.domain.BaseEntity;

/**
 * 按车间统计计划对象 main_production_plan
 *
 * @author qijian
 * @date 2023-09-07
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@TableName("main_production_plan")
public class ProductionPlan extends BaseEntity{
    private static final long serialVersionUID = 1L;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "id")
    private Long id;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "开始时间")
    private Date startTime;

    @Excel(name = "项目id")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "项目id")
    private Long projectId;

    @Excel(name = "bomId")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "bomId")
    private Long bomId;

    @Excel(name = "间隔天数")
    @ApiModelProperty(value = "间隔天数")
    private Long step;

    @ApiModelProperty("项目号")
    private String projectNo;

    @ApiModelProperty("机台号")
    private String machineNo;

    //新增3个开始时间 [工艺、采购、预算]
    @ApiModelProperty("工艺时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date craftTime;

    @ApiModelProperty("采购时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date purchaseTime;

    @ApiModelProperty("预算时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date budgetTime;


}
